/** When your routing table is too long, you can split it into small modules**/
import Layout from '@/layout'

const botRouter = {
  path: '/bot',
  component: Layout,
  redirect: 'noRedirect',
  name: 'bot',
  meta: {
    title: '机器人',
    icon: 'qq',
    roles: ['admin', 'botAdmin', 'sendMessageAdmin']
  },
  children: [
    {
      path: 'botfriend',
      component: () => import('@/views/a-MyViews/Bot/botFriendList'),
      name: 'botFriendList',
      meta: { title: '好友列表', noCache: true, roles: ['admin', 'botAdmin'] }
    },
    {
      path: 'botgroup',
      component: () => import('@/views/a-MyViews/Bot/botGroupList'),
      name: 'botGroupList',
      meta: { title: '群聊列表', noCache: true, roles: ['admin', 'botAdmin'] }
    },
    {
      path: 'sendmessage',
      component: () => import('@/views/a-MyViews/Bot/botSendMessage'),
      name: 'botSendMessage',
      meta: { title: '发送消息', noCache: true, roles: ['admin', 'botAdmin', 'sendMessageAdmin'] }
    }
  ]
}

export default botRouter
